* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.filter {
  display: flex;
  width: 990px;
  margin: 0 auto;
  padding: 50px 30px;
}

.filter a {
  padding: 10px 20px;
  background: #f5f5f5;
  color: #666;
  text-decoration: none;
  margin-right: 20px;
}

.filter a:active,
.filter a:focus {
  background-color: rgb(46, 147, 113);
  color: #fff;
}

.list {
  width: 990px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.item {
  width: 240px;
  margin-left: 10px;
  padding: 20px 30px;
  transition: all .5s;
  margin-bottom: 20px;
}

.item:nth-child(3n) {
  margin-left: 0;
}

.item:hover {
  box-shadow: 0px 0px 5px rgba(45, 10, 223, 0.2);
  transform: translate3d(0, -4px, 0);
  cursor: pointer;
}

.item img {
  width: 100%;
}

.item .name {
  font-size: 18px;
  margin-bottom: 10px;
  color: #666;
}

.item .price {
  font-size: 22px;
  color: firebrick;
}

.item .price::before {
  content: "¥";
  font-size: 14px;
}